//
//  OrdineRigheVC.h
//  iTeVe
//
//  Created by Pedro Gonzalez on 03/03/14.
//  Copyright (c) 2014 SISI Software. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Testa.h"
#import "Cliente.h"
#import "RigaDettaglio.h"
#import "RigaDettaglioEditVC.h"


@class OrdineRigheVC;

@protocol OrdineRigheVCDelegate <NSObject>

- (void)ordineRigheVCDidCancel:(OrdineRigheVC *)controller;
- (void)ordineRigheVC:(OrdineRigheVC *)controller didViewRighe:(NSMutableArray *)righeDettaglio;

@end


@interface OrdineRigheVC : UITableViewController <RigaDettaglioEditVCDelegate> {
    
    NSMutableArray *righeDettaglio;
    int rigaAttuale;
    
}



@property (nonatomic, weak) NSObject<OrdineRigheVCDelegate> *delegate;

@property (weak, nonatomic) IBOutlet UIBarButtonItem *btnAnnulla;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *btnConferma;


@property (nonatomic, strong) Testa *modelTesta;
//@property (nonatomic, strong) Cliente *modelCliente;
//@property (nonatomic, strong) NSMutableArray *modelDettaglio;
@property (nonatomic, strong) RigaDettaglio *modelRiga;

@end
